isSMTP(); $mail->Host = 'smtp.example.com'; // Set the SMTP server to send through $mail->SMTPAuth = true; $mail->Username = 'your-email@example.com'; // SMTP username $mail->Password = 'your-email-password'; // SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; //Recipients $mail->setFrom('your-email@example.com', 'Mailer'); $mail->addAddress('lofifighter@gmail.com'); // Add a recipient // Content $mail->isHTML(true); $mail->Subject = "New Sales Query from $client_name"; $mail->Body = " Sales Query

Sales Query Details

Client Name: $client_name

Client Email: $client_email

Product Interest: $product_interest

Budget: $budget

Additional Details: $details

"; $mail->send(); echo 'Email has been sent'; } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } ?>